#!/usr/bin/env bash

GIT_URL="${GIT_URL:-https://gitee.com/i6du}"

clone(){
git clone $GIT_URL/$1.git --depth=1
}

mkdir -p 6du
cd 6du

for url in site init sh 6du docker config template chrome plugin
do
clone $url
done

mkdir -p npm

npm(){
  cd npm
  git clone $GIT_URL-npm/$1.git --depth=1
  cd ..
}

for url in file-trace
do
npm $url
done
